package common_class.Demo04;

/**
 * @Author Miku
 * @Create 2021/4/11 14:07
 */
public class Test {
    public static void main(String[] args) {
        //面试题
        Integer integer1 = new Integer(100);
        Integer integer2 = new Integer(100);
        System.out.println(integer1 == integer2);

        //自动装箱，系统调用方法实质为XXX.valueOf()
        Integer integer3 = 100;
        Integer integer4 = 100;
        System.out.println(integer3 == integer4);

        Integer integer5 = 200;
        Integer integer6 = 200;
        System.out.println(integer5 == integer6);

    }
}
